﻿namespace Unity
{
    using System;
    using UnityEngine.Networking;

    public class GeneratedNetworkCode
    {
        public static NetworkDirection _ReadNetworkDirection_None(NetworkReader reader)
        {
            return new NetworkDirection { angle = (byte) reader.ReadPackedUInt32() };
        }

        public static NetworkPosition _ReadNetworkPosition_None(NetworkReader reader)
        {
            return new NetworkPosition { x_100 = (short) reader.ReadPackedUInt32(), y_10 = (sbyte) reader.ReadPackedUInt32(), z_100 = (short) reader.ReadPackedUInt32() };
        }

        public static void _WriteNetworkDirection_None(NetworkWriter writer, NetworkDirection value)
        {
            writer.WritePackedUInt32(value.angle);
        }

        public static void _WriteNetworkPosition_None(NetworkWriter writer, NetworkPosition value)
        {
            writer.WritePackedUInt32((uint) value.x_100);
            writer.WritePackedUInt32((uint) value.y_10);
            writer.WritePackedUInt32((uint) value.z_100);
        }
    }
}

